package com.alibaba.otter.node.etl.autoconfigure;

import com.alibaba.otter.node.etl.OtterContextLocator;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

public class NodeConfigInitializer implements BeanFactoryPostProcessor {


    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        OtterContextLocator.register(beanFactory);
    }
}
